import request from '@/utils/request'

// 查询在线商城-药品分类列表
export function listDrugClass(query) {
  return request({
    url: '/mall/drugClass/list',
    method: 'get',
    params: query
  })
}

// 查询在线商城-药品分类详细
export function getDrugClass(id) {
  return request({
    url: '/mall/drugClass/' + id,
    method: 'get'
  })
}

// 新增在线商城-药品分类
export function addDrugClass(data) {
  return request({
    url: '/mall/drugClass',
    method: 'post',
    data: data
  })
}

// 修改在线商城-药品分类
export function updateDrugClass(data) {
  return request({
    url: '/mall/drugClass',
    method: 'put',
    data: data
  })
}

// 删除在线商城-药品分类
export function delDrugClass(id) {
  return request({
    url: '/mall/drugClass/' + id,
    method: 'delete'
  })
}
